<?
$poll_name = $this->poll_name;
$sum_count = $this->sum_count;
$answers = $this->answers;
?>
<div><?=$poll_name;?></div>
<? foreach ($answers as $answer): ?>
<div id="results">
    <div><?= $answer['name'] ?></div>
    <div id="back">
        <div style="width: 197px;">
            <div id="top" style="width: <?= ( round((197*$answer['votesCount'])/$sum_count)) ?>px;"></div>
        </div>
        <div id="percent" ><?= round((100*$answer['votesCount'])/$sum_count) ?>% (<?=$answer['votesCount'];?>)
        </div>
    </div>
    <br>
    <? endforeach;?>
    <p>Total: <?=$sum_count?></p>